package scr 
{
	import flash.display.Sprite;
	import ru.gosoplata.model.TmpModel;
	/**
	 * TODO: это в дальнейшем должна быть фабрика по производству нужных вью. все сильно тормозит когда при старте инициализируется ВСЕ!
	 * @author aorlean
	 */
	public class InitScreens 
	{
		private var scr_2:ScreenIndexServices = new ScreenIndexServices();				// + index_services
		private var scr_3:ScreenEnterPhone= new ScreenEnterPhone();						// + enter_phone
		private var scr_4:ScreenEnterUserData=new ScreenEnterUserData();				// - enter_userdata
		private var scr_5:ScreenConfirmPhone=new ScreenConfirmPhone();					// + confirm_phone //TODO: объеденить с enter_phone?
		private var scr_6:ScreenConfirmUserData=new ScreenConfirmUserData();			// confirm_userdata
		
		private var scr_8:ScreenChooseProvider=new ScreenChooseProvider();				// + - choose_provider
		private var scr_9:ScreenPay=new ScreenPay();									// + pay
		private var scr_10:ScreenFinishPay=new ScreenFinishPay();						// + finish_pay
		private var scr_11:ScreenSearch=new ScreenSearch();								// + search
		private var scr_12:ScreenInfo=new ScreenInfo();									// + info //TODO: объеденить с офертой?
		private var scr_13:ScreenOferta=new ScreenOferta();								// + oferta
		private var scr_14:ScreenWCDirection=new ScreenWCDirection();					// + wc_direction
		private var scr_15:ScreenWCClosed=new ScreenWCClosed();							// + - wc_closed
		private var scr_16:ScreenCoinOUT = new ScreenCoinOUT();							// + - coinout
		
		private var scr_19:ScreenExchangeCode = new ScreenExchangeCode();				// - enter_exchange_code
		
		private var scr_20:ScreenWCLogin=new ScreenWCLogin();							// ? - wc_login
		private var scr_21:ScreenWCServise = new ScreenWCServise();						// ? - wc_servise
		
		public function InitScreens() 
		{
			for (var ii:Number = 1; ii < 22; ii++) 
			{
				if (ii == 1 || ii == 7  || ii == 17  || ii == 18 ) continue;
				TmpModel.screenController.getConteiner().addChild(this["scr_" + ii]);
			}
			
			var lock:Sprite = new Sprite();
			lock.name = 'blocker';
			var alpha:Number = 0;
			if (CONFIG::debug) alpha = .5;
			lock.graphics.beginFill(0, alpha);
			lock.graphics.drawRect(0, 0, 1280, 1024);
			TmpModel.screenController.getConteiner().addChild(lock);
		}
	}

}